<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <!--[if lt IE 9]>
    <script type="text/javascript" src="../../lib/html5shiv.js?rev=@@hash"></script>
    <script type="text/javascript" src="../../lib/respond.min.js?rev=@@hash"></script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="../../static/h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="../../static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="../../lib/Hui-iconfont/1.0.8/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="../../static/h-ui.admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="../../static/h-ui.admin/css/style.css" />
    <link rel="stylesheet" type="text/css" href="../../ht-css/Project.css" />
    <!--[if IE 6]>
    <script type="text/javascript" src="../../lib/DD_belatedPNG_0.0.8a-min.js" ></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    <title>账号管理</title>
</head>
<body data-id="26">
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页  <span class="c-gray en">&gt;</span> 权限管理  <span class="c-gray en">&gt;</span> 账号管理 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<article class="page-container">
    <form class="ml-20 mr-20" id="accounts"    method="post">
        <div class="bg-1 bk-gray mt-10 pb-10 clearfix">
            <div class="lh-30 mb-10 pt-20">
                <table class="table-hover table_li ml-10 mb-10 table">
                    <thead class="text-l">
                    <tr>
                        <td class="col-3-1">
                            <div class="row ml-10">
                                <label class="form-label f-l pt-5">工号：</label>
                                <div class="formControls col-xs-8 col-sm-7">
                                    <input type="text" class="input-text radius"  id="number" name="number"  placeholder="这里输入工号">
                                </div>
                            </div>
                        </td>
                        <td class="col-3-1">
                            <div class="row ml-10">
                                <label class="form-label f-l pt-5">姓名：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <input type="text" class="input-text radius"  id="username" name="username" placeholder="这里输入姓名">
                                </div>
                            </div>
                        </td>
                        <td class="col-3-1">
                            <div class="row ml-10">
                                <label class="form-label f-l pt-5">用户名（邮箱前缀）：</label>
                                <div class="formControls col-xs-8 col-sm-7">
                                    <input type="text" class="input-text radius"  id="userloginname" name="userloginname"  placeholder="这里输入用户名">
                                </div>
                            </div>
                        </td>
                    </tr>
                    </thead>
                </table>
            </div>
            <div class="text-c">
                <input name="" type="reset" class="btn radius size-S ml-10 powerButton 1000001954909102" onclick="addUserButton()"  value="&nbsp;添&nbsp;&nbsp;加&nbsp;">
            </div>
        </div>
    </form>
</article>
<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="../../lib/jquery/1.9.1/jquery.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/layer/2.4/layer.js?rev=@@hash"></script>
<script type="text/javascript" src="../../static/h-ui/js/H-ui.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../static/h-ui.admin/js/H-ui.admin.js?rev=@@hash"></script> <!--/_footer 作为公共模版分离出去-->
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="../../lib/My97DatePicker/4.8/WdatePicker.js?rev=@@hash"></script>
<!--表单验证-->
<script type="text/javascript" src="../../lib/jquery.validation/1.14.0/jquery.validate.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/jquery.validation/1.14.0/validate-methods.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/jquery.validation/1.14.0/messages_zh.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/datatables/1.10.0/jquery.dataTables.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/laypage/1.2/laypage.js?rev=@@hash"></script>
<script src="../../ht-js/public.js?rev=@@hash"></script>
<!--验证token-->
<script src="../../ht-js/verifyToken.js?rev=@@hash"></script>
<script type="text/javascript" src="../../ht-js/power.js?rev=@@hash"></script>
<script>

    function addUserButton(obj,id){

        var number = document.getElementById("number").value;
        var username = document.getElementById("username").value;
        var userloginname = document.getElementById("userloginname").value;
        if(number == null || number == '' || username == null || username == '' || userloginname == null
        || userloginname == '' || userloginname == undefined || number == undefined || username == undefined){
            alert("参数不能为空");
        }else{
            layer.confirm('确认要添加吗？',function(index){
                $.ajax({
                    type: "GET",
                    url:  HOST + '/arights/user/synchSaveU?USERNAME='+userloginname+'&NAME='+username+'&NUMBER='+number,
                    cache: false,  //禁用缓存
                    success: function (data) {

                        if(data.code == '200'){
                            alert("添加成功");
                            window.location.reload();
                        }else{
                            alert("添加失败");
                            window.location.reload();
                        }
                    },
                });

            });
        }
    }
</script>
</body>
</html>